import axios from '@/utils/axios'

const getOpenPayMchidApi = '/sp_admin/pay_config/getOpenPayMchid' // 获取聚合支付开发配置
const refreshOpenPayMchidApi = '/sp_admin/pay_config/refreshOpenPayMchid' // 刷新聚合支付开发配置

/**
 * @desc 获取聚合支付开发配置
 */
export const getOpenPayMchid = ({ params }) => {
  return axios({
    url: getOpenPayMchidApi,
    method: 'get',
    params: params
  })
}

/**
 * @desc 刷新聚合支付开发配置
 */
export const refreshOpenPayMchid = ({ params }) => {
  return axios({
    url: refreshOpenPayMchidApi,
    method: 'get',
    params: params
  })
}
